package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Chart {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer aid;   //文章
    private String author; //点赞者
    private String bauthor; //被点赞者
    private Integer type; //0点赞 1收藏
    private String groupname;
    @TableLogic //逻辑删除注解
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private String title;               //文章标题
}
